:root {
	--primary-color: #f8f0e3;
	--secondary-color: #eadbc8;
	--accent-color: #e76f51;
	--accent-hover: #f4a261;
	--text-color: #433520;
	--bg-color: #faf6f0;
	--card-bg: #ffffff;
	--lighter-bg: #f5efe6;
	--border-color: #ddd0c0;
	--success-color: #6b9080;
	--warning-color: #e9c46a;
	--danger-color: #e63946;
	--code-bg: #f0e6d9;
	--shadow-color: rgba(0, 0, 0, 0.1);
	--encrypt-color: #e76f51;
	--encrypt-bg: rgba(231, 111, 81, 0.1);
	--diary-color: #6b9080;
	--diary-bg: rgba(107, 144, 128, 0.1);
}

body {
	font-family: 'Arial', sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	margin: 0;
	padding: 0;
	line-height: 1.6;
}

.top-sidebar-cotainer {
	background-color: var(--primary-color);
	padding: 12px 0; /* 增加垂直padding适应两行布局 */
	box-shadow: 0 2px 8px var(--shadow-color);
	position: sticky;
	top: 0;
	z-index: 100;
}

.top-sidebar {
	display: flex;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px; /* 减少水平padding */
	flex-wrap: wrap; /* 允许换行 */
	overflow-x: visible; /* 移除水平滚动 */
	justify-content: flex-start; /* 左对齐 */
}

/* 导航项容器 */
.nav-container {
	display: flex;
	align-items: center;
	flex-wrap: wrap; /* 允许导航项换行 */
	flex-grow: 1;
	gap: 5px; /* 添加间距 */
}

/* 搜索和切换容器 */
.search-toggle-container {
	display: flex;
	align-items: center;
	width: 100%; /* 占满整行 */
	margin-top: 8px; /* 添加上边距 */
	justify-content: space-between; /* 两端对齐 */
	gap: 10px; /* 添加间距 */
}

/* 头部操作区域 */
.header-actions {
	display: flex;
	align-items: center;
	gap: 15px; /* 搜索框、切换按钮和用户信息之间的间距 */
}

/* 用户信息显示区域 */
.user-info {
	display: flex;
	align-items: center;
	gap: 8px;
	background-color: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	padding: 6px 12px;
	box-shadow: 0 2px 4px var(--shadow-color);
	transition: all 0.3s ease;
	cursor: pointer;
}

.user-info:hover {
	background-color: var(--secondary-color);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px var(--shadow-color);
}

/* 用户头像 */
.user-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(45deg, var(--accent-color), var(--accent-hover));
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: bold;
	text-transform: uppercase;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 用户名称 */
.user-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-color);
	white-space: nowrap;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.img-cycle {
	border-radius: 50%;
	margin-right: 15px; /* 减少右边距 */
	transition: all 0.3s ease;
	border: 3px solid var(--accent-color);
	box-shadow: 0 4px 8px var(--shadow-color);
	width: 70px; /* 减小尺寸适应新布局 */
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px; /* 减小字体 */
	font-weight: bold;
	color: var(--accent-color);
	background-color: var(--card-bg);
	font-family: 'Arial', sans-serif;
	letter-spacing: 1px;
	flex-shrink: 0; /* 防止缩小 */
}

.img-cycle:hover {
	transform: scale(1.1) rotate(5deg);
	background-color: var(--accent-color);
	color: white;
	box-shadow: 0 6px 12px var(--shadow-color);
}

.top-sidebar a {
	color: var(--text-color);
	text-decoration: none;
	margin-right: 25px;
	font-weight: bold;
	transition: all 0.3s;
}

.top-sidebar a:hover {
	color: var(--accent-color);
	transform: translateY(-2px);
}

.search-container {
	display: flex;
	flex-grow: 0; /* 不允许增长，固定宽度 */
	flex-shrink: 1; /* 允许缩小 */
	max-width: 450px; /* 增加最大宽度以适应三个元素 */
	min-width: 200px; /* 设置最小宽度 */
	margin-left: 0; /* 移除左边距 */
	margin-right: 0; /* 移除右边距 */
}

#search {
	flex-grow: 1;
	padding: 6px 10px; /* 进一步减少padding */
	border: 1px solid var(--border-color);
	border-right: none;
	border-radius: 20px 0 0 20px; /* 减小圆角 */
	background-color: var(--card-bg);
	color: var(--text-color);
	font-size: 13px; /* 进一步减小字体 */
	outline: none;
	transition: all 0.3s;
}

#search:focus {
	box-shadow: 0 0 0 2px var(--accent-color);
	border-color: var(--accent-color);
}

.search-btn {
	padding: 6px 12px; /* 进一步减少padding */
	background-color: var(--accent-color);
	color: white;
	border: 1px solid var(--accent-color);
	border-left: none;
	border-radius: 0;
	cursor: pointer;
	font-size: 13px; /* 进一步减小字体 */
	transition: all 0.3s;
	white-space: nowrap; /* 防止文字换行 */
}

.search-btn:hover {
	background-color: var(--accent-hover);
	transform: translateY(-2px);
}

/* 搜索命令选择器样式 */
.search-command-select {
	padding: 6px 10px;
	background-color: var(--secondary-color);
	color: var(--text-color);
	border: 1px solid var(--border-color);
	border-left: none;
	border-radius: 0 20px 20px 0;
	font-size: 13px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 12px;
	padding-right: 28px;
	min-width: 100px;
	transition: all 0.3s;
}

.search-command-select:hover {
	background-color: var(--lighter-bg);
}

.search-command-select:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--accent-color);
	border-color: var(--accent-color);
}


.view-toggle {
	background-color: var(--accent-color);
	color: white;
	border: none;
	border-radius: 4px;
	padding: 6px 8px; /* 进一步减少padding */
	cursor: pointer;
	font-size: 12px; /* 进一步减小字体 */
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 3px; /* 进一步减少间距 */
	flex-shrink: 0; /* 防止缩小 */
	white-space: nowrap; /* 防止文字换行 */
	min-width: 80px; /* 设置最小宽度 */
}

.view-toggle:hover {
	background-color: var(--accent-hover);
	transform: translateY(-2px);
}

.view-toggle i {
	font-size: 14px; /* 减小图标尺寸 */
}

.container {
	max-width: 1200px;
	margin: 30px auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	grid-gap: 20px;
	transition: all 0.3s ease;
}

.container.list-view {
	grid-template-columns: 1fr;
}

.link-card {
	background-color: var(--card-bg);
	border-radius: 8px;
	padding: 15px;
	box-shadow: 0 4px 6px var(--shadow-color);
	transition: transform 0.3s, box-shadow 0.3s;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--border-color);
	display: flex;
	align-items: center;
}

.container.list-view .link-card {
	padding: 12px 20px;
}

.link-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 12px var(--shadow-color);
}

.link-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background-color: var(--accent-color);
	transition: width 0.3s ease;
}

.link-card:hover::before {
	width: 8px;
}

.link-with-dot {
	color: var(--text-color);
	text-decoration: none;
	font-size: 18px;
	display: block;
	padding: 8px 10px;
	transition: all 0.3s;
	position: relative;
}

/* 权限图标通用样式 */
.encrypt-lock,
.diary-icon,


/* 加密锁样式 */
.encrypt-lock {
	color: var(--encrypt-color);
	background: var(--encrypt-bg);
}

.encrypt-lock:hover {
	background: var(--encrypt-color);
	color: white;
	transform: scale(1.1);
}

/* 日记图标样式 */
.diary-icon {
	color: var(--diary-color);
	background: var(--diary-bg);
}

.diary-icon:hover {
	background: var(--diary-color);
	color: white;
	transform: scale(1.1);
}


.link-with-dot:hover {
	color: var(--accent-color);
}

.dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--accent-color);
	margin-left: 8px;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.2); opacity: 0.7; }
	100% { transform: scale(1); opacity: 1; }
}

/* 底部信息栏 - 修复显示不全问题 */
.bottom-fix-div {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 12px 20px;
    display: flex;
    justify-content: center; /* 改为居中显示 */
    align-items: center;
    box-shadow: 0 -2px 10px var(--shadow-color);
    z-index: 50;
    gap: 30px; /* 增加间距 */
    box-sizing: border-box; /* 确保padding不增加总宽度 */
}

.right-label {
    font-size: 15px; /* 适当减小字体大小 */
    color: var(--text-color);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0; /* 防止内容被压缩 */
    padding: 4px 8px; /* 增加内边距 */
    background-color: var(--secondary-color);
    border-radius: 12px; /* 圆角效果 */
}

/* 响应式调整 - 在小屏幕上进一步优化 */
@media (max-width: 480px) {
    .bottom-fix-div {
        justify-content: space-around; /* 小屏幕均匀分布 */
        gap: 5px;
        padding: 6px 5px; /* 减少垂直padding */
        flex-wrap: wrap; /* 允许换行 */
        max-height: 60px; /* 限制最大高度 */
    }
    .right-label {
        font-size: 12px; /* 进一步减小字体 */
        padding: 2px 4px; /* 减少内边距 */
        line-height: 1.2; /* 减少行高 */
        border-radius: 8px; /* 减小圆角 */
    }
    
    /* 进一步减少底部导航高度 */
    .container {
        padding-bottom: 70px !important; /* 减少底部间距 */
    }
    
    .recent-section {
        padding-bottom: 70px !important;
    }
}





.create-btn {
	position: fixed;
	right: 30px;
	bottom: 60px;
	background-color: var(--accent-color);
	color: white;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	box-shadow: 0 4px 10px var(--shadow-color);
	transition: all 0.3s;
	text-decoration: none;
}

.create-btn:hover {
	transform: scale(1.1) translateY(-5px);
	background-color: var(--accent-hover);
	box-shadow: 0 8px 15px var(--shadow-color);
}

/* 智能助手悬浮按钮 */
.assistant-btn {
	position: fixed;
	right: 30px;
	bottom: 140px;
	background: linear-gradient(45deg, #00d4aa, #a1c4fd);
	color: white;
	width: 55px;
	height: 55px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
	transition: all 0.3s ease;
	text-decoration: none;
	z-index: 999;
}

.assistant-btn:hover {
	transform: scale(1.15) translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
	background: linear-gradient(45deg, #00e6c0, #b1d1ff);
}

.assistant-btn i {
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
	.top-sidebar {
		padding: 0 10px;
	}
	
	.img-cycle {
		width: 60px;
		height: 60px;
		font-size: 30px;
		margin-right: 12px;
	}
	
	.nav-item {
		margin-right: 12px;
		padding: 6px 4px;
		min-width: 55px;
	}
	
	.nav-icon {
		font-size: 18px;
	}
	
	.nav-text {
		font-size: 11px;
	}
	
	.search-container {
		max-width: 300px;
		min-width: 180px;
	}
	
	.view-toggle {
		padding: 5px 6px;
		font-size: 11px;
		min-width: 70px;
	}
}

@media (max-width: 768px) {
	.top-sidebar-cotainer {
		padding: 8px 0; /* 减少顶部容器padding */
	}
	
	.top-sidebar {
		padding: 0 8px;
		flex-direction: column; /* 垂直布局 */
		align-items: stretch; /* 拉伸对齐 */
		gap: 8px;
	}
	
	/* 导航区域在移动端的布局 */
	.nav-container {
		justify-content: flex-start; /* 左对齐 */
		flex-wrap: wrap; /* 允许换行 */
		width: 100%;
		order: 1; /* 第一行 */
	}
	
	.img-cycle {
		width: 50px;
		height: 50px;
		font-size: 24px;
		margin-right: 8px;
		order: -1; /* 始终在最前面 */
	}
	
	.nav-text {
		display: none; /* 隐藏文字，只显示图标 */
	}
	
	.nav-item {
		margin-right: 8px;
		margin-bottom: 4px; /* 添加底部间距用于换行 */
		padding: 6px 4px;
		min-width: 40px;
		flex: 0 0 auto; /* 不拉伸，固定尺寸 */
	}
	
	.nav-icon {
		margin-bottom: 0;
		font-size: 18px;
	}
	
	.search-toggle-container {
		justify-content: center; /* 在小屏幕上居中显示 */
		margin-top: 0; /* 移除margin，因为已经有gap */
		order: 2; /* 第二行 */
		width: 100%;
	}
	
	.header-actions {
		gap: 10px; /* 减少间距 */
	}
	
	.user-info {
		padding: 4px 8px;
		border-radius: 15px;
	}
	
	.user-avatar {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}
	
	.user-name {
		font-size: 12px;
		max-width: 80px;
	}
	
	.search-container {
		max-width: 250px;
		min-width: 160px;
	}
	
	#search {
		padding: 5px 8px;
		font-size: 12px;
	}
	
	.search-btn {
		padding: 5px 10px;
		font-size: 12px;
	}

	.search-command-select {
		padding: 5px 8px;
		font-size: 12px;
		padding-right: 24px;
		background-size: 10px;
		background-position: right 6px center;
		min-width: 80px;
	}

	.view-toggle {
		padding: 5px 6px;
		font-size: 11px;
		min-width: 65px;
	}

	.container {
		grid-template-columns: 1fr;
		padding-bottom: 80px; /* 为底部导航留出空间 */
	}

	.create-btn {
		right: 20px;
		bottom: 70px;
	}
	
	.assistant-btn {
		right: 20px;
		bottom: 140px;
		width: 50px;
		height: 50px;
		font-size: 20px;
	}
	
	/* 最近查看区域也需要底部间距 */
	.recent-section {
		padding-bottom: 80px;
	}

	/* 搜索命令面板在移动端的调整 */
	.search-commands-section {
		margin: 20px 0 15px 0;
		padding: 15px;
	}

	.search-commands {
		gap: 8px;
	}

	.search-command {
		padding: 6px 12px;
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.top-sidebar-cotainer {
		padding: 6px 0; /* 进一步减少padding */
	}
	
	.top-sidebar {
		padding: 0 5px;
		gap: 6px; /* 减少间距 */
	}
	
	/* 进一步优化导航容器 */
	.nav-container {
		gap: 3px; /* 减少导航项之间的间距 */
	}
	
	.img-cycle {
		width: 45px;
		height: 45px;
		font-size: 20px;
		margin-right: 6px;
	}
	
	.nav-item {
		margin-right: 6px;
		margin-bottom: 3px; /* 减少底部间距 */
		padding: 4px 3px;
		min-width: 35px;
		flex: 0 0 auto;
	}
	
	.nav-icon {
		font-size: 16px;
	}
	
	.search-toggle-container {
		flex-direction: column; /* 垂直排列搜索框和切换按钮 */
		gap: 5px;
		margin-top: 0;
		width: 100%;
		align-items: center; /* 居中对齐 */
	}
	
	.header-actions {
		flex-direction: column;
		gap: 5px;
		width: 100%;
		align-items: center;
	}
	
	.user-info {
		padding: 3px 6px;
		border-radius: 12px;
		order: -1; /* 在最小屏幕上将用户信息放到最前面 */
	}
	
	.user-avatar {
		width: 20px;
		height: 20px;
		font-size: 10px;
	}
	
	.user-name {
		font-size: 11px;
		max-width: 60px;
	}
	
	.search-container {
		max-width: 100%;
		min-width: 200px;
		width: 90%; /* 占用大部分宽度 */
	}
	
	#search {
		padding: 4px 6px;
		font-size: 11px;
	}
	
	.search-btn {
		padding: 4px 8px;
		font-size: 11px;
	}

	.search-command-select {
		padding: 4px 6px;
		font-size: 11px;
		padding-right: 22px;
		background-size: 9px;
		background-position: right 5px center;
		min-width: 70px;
	}

	.view-toggle {
		padding: 4px 5px;
		font-size: 10px;
		gap: 2px;
		min-width: 100px;
		align-self: center; /* 居中对齐 */
	}
	
	.assistant-btn {
		right: 15px;
		bottom: 130px;
		width: 45px;
		height: 45px;
		font-size: 18px;
	}

	/* 搜索命令面板在超小屏幕的调整 */
	.search-commands-section {
		margin: 15px 0 10px 0;
		padding: 12px;
	}

	.search-commands {
		gap: 6px;
	}

	.search-command {
		padding: 5px 10px;
		font-size: 12px;
		border-radius: 16px;
	}
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
	.top-sidebar-cotainer {
		padding: 4px 0; /* 最小padding */
	}
	
	.top-sidebar {
		padding: 0 3px;
		gap: 4px; /* 最小间距 */
	}
	
	.nav-container {
		gap: 2px; /* 最小导航项间距 */
	}
	
	.img-cycle {
		width: 40px;
		height: 40px;
		font-size: 18px;
		margin-right: 4px;
	}
	
	.nav-item {
		margin-right: 4px;
		margin-bottom: 2px; /* 最小底部间距 */
		padding: 3px 2px;
		min-width: 30px;
		flex: 0 0 auto;
	}
	
	.nav-icon {
		font-size: 14px;
	}
	
	.search-toggle-container {
		gap: 4px; /* 减少搜索区域间距 */
	}
	
	.search-container {
		min-width: 180px;
		width: 95%; /* 占用更多宽度 */
	}
	
	#search {
		padding: 3px 5px;
		font-size: 10px;
	}
	
	.search-btn {
		padding: 3px 6px;
		font-size: 10px;
	}

	.search-command-select {
		padding: 3px 5px;
		font-size: 10px;
		padding-right: 20px;
		background-size: 8px;
		background-position: right 4px center;
		min-width: 60px;
	}

	.view-toggle {
		padding: 3px 4px;
		font-size: 9px;
		gap: 1px;
		min-width: 80px;
	}
	
	.view-toggle i {
		font-size: 12px;
	}
	
	.assistant-btn {
		right: 15px;
		bottom: 120px;
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	/* 搜索命令面板在最小屏幕的调整 */
	.search-commands-section {
		margin: 12px 0 8px 0;
		padding: 10px;
	}

	.search-commands {
		gap: 5px;
	}

	.search-command {
		padding: 4px 8px;
		font-size: 11px;
		border-radius: 14px;
	}
}

/* 最近查看区域样式 */
.recent-section {
	max-width: 1200px;
	margin: 30px auto 0;
	padding: 0 20px;
}

.section-title {
	color: var(--text-color);
	font-size: 22px;
	margin-bottom: 15px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--border-color);
	display: flex;
	align-items: center;
}

.recent-container {
	display: flex;
	overflow-x: auto;
	gap: 15px;
	padding: 15px 5px;
	margin-bottom: 20px;
	scrollbar-width: thin;
	scrollbar-color: var(--accent-color) var(--border-color);
}

.recent-container::-webkit-scrollbar {
	height: 6px;
}

.recent-container::-webkit-scrollbar-track {
	background: var(--border-color);
	border-radius: 10px;
}

.recent-container::-webkit-scrollbar-thumb {
	background: var(--accent-color);
	border-radius: 10px;
}

.recent-card-circle {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 5px;
	transition: transform 0.3s ease;
	width: 90px;
}

.recent-card-circle:hover {
	transform: translateY(-5px);
}

.circle-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	width: 100%;
	position: relative;
}

.circle-avatar {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	position: relative;
	box-shadow: 0 4px 6px var(--shadow-color);
	border: 3px solid var(--card-bg);
	transition: all 0.3s ease;
	overflow: hidden;
}

.circle-avatar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 70%);
	border-radius: 50%;
}

.circle-text {
	color: white;
	font-size: 24px;
	font-weight: bold;
	text-transform: none;
	letter-spacing: 0;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

.circle-title {
	color: var(--text-color);
	font-size: 14px;
	text-align: center;
	margin-top: 5px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
}

/* 最近访问区域的权限图标样式 */
.circle-title .encrypt-lock,
.circle-title .diary-icon,
.circle-link:hover .circle-avatar {
	transform: scale(1.05);
	box-shadow: 0 6px 12px var(--shadow-color);
	filter: brightness(1.1);
}

.dot-indicator {
	position: absolute;
	top: 0;
	right: 5px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--accent-color);
	animation: pulse 2s infinite;
}

.empty-recent {
	padding: 20px;
	text-align: center;
	color: var(--text-color);
	opacity: 0.8;
	width: 100%;
	font-style: italic;
}

/* 媒体查询中添加最近查看区域的响应式样式 */
@media (max-width: 768px) {
	.recent-card-circle {
		width: 80px;
	}
	
	.circle-avatar {
		width: 60px;
		height: 60px;
	}
	
	.circle-text {
		font-size: 22px;
	}
}

/* 针对超小屏幕的优化 */
@media (max-width: 480px) {
	.recent-card-circle {
		width: 70px;
	}
	
	.circle-avatar {
		width: 50px;
		height: 50px;
	}
	
	.circle-text {
		font-size: 18px;
	}
	
	.circle-title {
		font-size: 12px;
	}
}

/* 圆形头像多彩背景颜色 */
.recent-card-circle:nth-child(8n+1) .circle-avatar { background-color: #e76f51; }
.recent-card-circle:nth-child(8n+2) .circle-avatar { background-color: #2a9d8f; }
.recent-card-circle:nth-child(8n+3) .circle-avatar { background-color: #e9c46a; }
.recent-card-circle:nth-child(8n+4) .circle-avatar { background-color: #264653; }
.recent-card-circle:nth-child(8n+5) .circle-avatar { background-color: #f4a261; }
.recent-card-circle:nth-child(8n+6) .circle-avatar { background-color: #6b9080; }
.recent-card-circle:nth-child(8n+7) .circle-avatar { background-color: #a8dadc; }
.recent-card-circle:nth-child(8n+8) .circle-avatar { background-color: #457b9d; }

.nav-item {
  display: flex;
  flex-direction: column; /* 垂直布局：图标在上，文字在下 */
  align-items: center;
  justify-content: center;
  margin-right: 15px; /* 减少水平间距 */
  cursor: pointer;
  transition: background 0.2s;
  padding: 8px 6px; /* 调整padding适应垂直布局 */
  border-radius: 6px;
  font-size: 18px;
  min-width: 60px; /* 设置最小宽度确保点击区域 */
  text-align: center;
}
.nav-item:hover {
  background: #ffe5d0;
  color: var(--accent-color);
}
.nav-icon {
  font-size: 20px; /* 稍微减小图标尺寸 */
  margin-right: 0; /* 移除右边距 */
  margin-bottom: 2px; /* 添加底部间距 */
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-text {
  font-size: 12px; /* 减小文字尺寸 */
  color: #3d2c1e;
  font-weight: bold;
  display: flex;
  align-items: center;
  line-height: 1.2; /* 紧凑行高 */
  white-space: nowrap; /* 防止文字换行 */
}
@media (max-width: 768px) {
  .nav-text {
    display: none;
  }
  .nav-item {
    margin-right: 8px;
    padding: 6px 4px;
    min-width: 40px;
  }
  .nav-icon {
    margin-bottom: 0;
    font-size: 18px;
  }
}

/* 标签区域样式 */
.tags-section {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.tags-section .section-title {
    color: var(--text-color);
    font-size: 22px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tag-filter {
    padding: 6px 12px;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.tag-filter:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Tag size variations based on count */
.tag-size-small {
    font-size: 11px;
    padding: 4px 8px;
}

.tag-size-medium {
    font-size: 13px;
    padding: 6px 12px;
}

.tag-size-large {
    font-size: 16px;
    padding: 8px 16px;
    font-weight: 600;
}

/* 智能助手悬浮按钮 */
.assistant-floating-btn {
    position: fixed;
    right: 30px;
    bottom: 140px;
    background: linear-gradient(45deg, #00d4aa, #a1c4fd);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 999;
}

.assistant-floating-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
    background: linear-gradient(45deg, #00e6c0, #b1d1ff);
    text-decoration: none;
    color: white;
}

.assistant-floating-btn i {
    animation: assistantPulse 2s infinite;
}

@keyframes assistantPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 1024px) {
    .assistant-floating-btn {
        right: 20px;
        bottom: 140px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .assistant-floating-btn {
        right: 15px;
        bottom: 130px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .assistant-floating-btn {
        right: 15px;
        bottom: 120px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
